require 'json'
require 'awesome_print'

tm = JSON.parse IO.readlines("tutem_menus.json")[0]
fm = JSON.parse IO.readlines("fc4_menus.json")[0]

#12.times { |i| puts tm[i] == fm[i] ? "#{i} o" : "#{i} x" }
#i==3 i==9 

i = 9
t = tm[i]
f = fm[i]
t.each do |k, v|
    if v != f[k]
        puts "t key: #{k} unmatched" 
        ap v
        #puts "t value: #{v}"
        puts "==="
        #puts "f value: #{f[k]}"
        ap f[k]
    end
end
